package com.jebel.framework.classic.event.context;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.core.env.Environment;

@Configuration
public class ApplicationConfiguration {

    @Autowired
    private Environment environment;

    public String getBossUrl(String opCode) {
        return environment.getProperty("boss.url", "http://172.30.87.62:9898/micservice/http/").concat(opCode);
    }

}
